80217: Function test xfi:start-equal

Documentation

Tests of function xfi:start-equal

Owners

Name Affiliation Email Start End
Herm Fischer UBMatrix / Mark V Systems fischer@markv.com 19-02-2008 at 00:00:00

References

http://www.xbrl.org/Specification/XBRL-RECOMMENDATION-2003-12-31+Corrected-Errata-2006-12-18.htm#_Toc156209161

Test Case Variations


V-01 Returns start-equality of dates that are equal

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-02 Returns start-inequality of dates that are not equal

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq false()

V-03 Returns start-equality of date and constant that are equal

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-04 Returns start-equality of date and dateTime that are equal

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-05 Returns start-equality of date and dateTime that are equal, reversed arguments

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-06 Returns start-equality of date and dateTime constant that are equal

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-07 Returns start-equality of date and dateTime that are not equal

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq false()

V-08 Returns start-equality of dateTimes that are not equal

Documentation

Inputs

  • schema: value-test-concepts.xsd
  • instance: value-test-instance.xml (DTS Discovery starting point) (ID=V08)
  • Function Call: xfi:start-equal( //concept:a[@id eq 'd6'], xfi:period-instant( xfi:period( /xbrli:xbrl/concept:a[@id eq 'd5'] ) ) )

    (against file V08)

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq false()

V-09 Returns start-equality of date and context dateTimes that are equal

Documentation

Inputs

  • schema: value-test-concepts.xsd
  • instance: value-test-instance.xml (DTS Discovery starting point) (ID=V09)
  • Function Call: xfi:start-equal( //concept:a[@id eq 'd6'], xfi:period-instant( xfi:period( /xbrli:xbrl/concept:a[@id eq 'd1'] ) ) )

    (against file V09)

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

Revisions

Name On Details
Herm Fischer 19-02-2008 at 00:00:00 Created the test case.